package com.grandprixsw.evmsmobile;

import android.content.Context;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.Toast;

public class GlobalOptionsMenu {

    public static final boolean CreateMenu(Menu menu) {
    	MenuItem aboutMenu = menu.add(0,0,0, "About");
    	{
    		aboutMenu.setAlphabeticShortcut('a');
    	}
    	
    	return true;
    }
    
    public static final boolean MenuChoice(Context ctx, MenuItem item) {
    	switch (item.getItemId()) {
    	case 0:
    		Toast.makeText(ctx, ctx.getResources().getString(R.string.about_authors), Toast.LENGTH_LONG).show();
    		return true;
    	}
    	
    	return false;
    }
}
